import request from '@/utils/request'

// 查询理货运抵预生成列表
export function listTallyArrival(query) {
  return request({
    url: '/kmwlpts/tallyArrival/list',
    method: 'get',
    params: query
  })
}

// 查询理货运抵预生成详细
export function getTallyArrival(id) {
  return request({
    url: '/kmwlpts/tallyArrival/' + id,
    method: 'get'
  })
}

// 新增理货运抵预生成
export function addTallyArrival(data) {
  return request({
    url: '/kmwlpts/tallyArrival',
    method: 'post',
    data: data
  })
}

// 修改理货运抵预生成
export function updateTallyArrival(data) {
  return request({
    url: '/kmwlpts/tallyArrival',
    method: 'put',
    data: data
  })
}

// 删除理货运抵预生成
export function delTallyArrival(id) {
  return request({
    url: '/kmwlpts/tallyArrival/' + id,
    method: 'delete'
  })
}

// 导出理货运抵预生成
export function exportTallyArrival(query) {
  return request({
    url: '/kmwlpts/tallyArrival/export',
    method: 'get',
    params: query
  })
}